﻿using System.Windows.Forms;

//  Nati Nissim ID: 038589602 
//  Michael Biniashvili ID: 061669966

namespace SimulationHW2
{
    public partial class ShowTableSimulation : Form
    {
        public ShowTableSimulation()
        {
            InitializeComponent();
            dataTableToSimulation.DataSource = PropertiesSimulation.dataTable;
            dataGridBtable.DataSource =PropertiesSimulation. dataTableB;
            dataGridTtable.DataSource = PropertiesSimulation.dataTableT;
            txtStringResult.Lines = PropertiesSimulation.StrZ;
            dataGTableSimulation.DataSource = PropertiesSimulation.dataTableZ;
        }

        private void ShowTableSimulation_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)27)
                this.Close();
        }
    }
}
